package com.example.livedata.ViewModel;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class TimeViewModel extends ViewModel {

    private MutableLiveData<Integer> timeValue;

    public MutableLiveData<Integer> getTimeValue() {
        if (timeValue == null) {
            timeValue = new MutableLiveData<>(0);
        }
        return timeValue;
    }
}
